package com.cheer.ba.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 新闻内容
 *
 * @author HQ
 *         created at 2017/3/31 0031 14:31
 */
public class NewsContentModel implements Serializable{

    //是否有图片
    private boolean havePic;

    //发布时间
    private String pubDate;

    //标题
    private String title;

    //所属标题
    private String channelName;

    //描述
    private String desc;

    //所属类别
    private String source;

    private String channelId;

    //跳转连接
    private String link;

    //图片
    private List<ImageUrl> imageurls;

    public boolean isHavePic() {
        return havePic;
    }

    public void setHavePic(boolean havePic) {
        this.havePic = havePic;
    }

    public String getPubDate() {
        return pubDate;
    }

    public void setPubDate(String pubDate) {
        this.pubDate = pubDate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public List<ImageUrl> getImageurls() {
        if (null == imageurls) {
            imageurls = new ArrayList<ImageUrl>();
        }
        return imageurls;
    }

    public void setImageurls(List<ImageUrl> imageurls) {
        this.imageurls = imageurls;
    }

    public class ImageUrl {

        //图片
        private String url;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }

}
